package com.xxpt.model.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author masl
 * @since 2023-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    private String account;

    private String password;

    private String salt;

    private String name;

    private String rights;

    /**
     * 部門id
     */
    private Long deptId;

    private Long roleId;

    /**
     * 最后登录时间
     */
    private Long lastLogin;

    private String ip;

    /**
     * 0:男，1：女
     */
    private Integer sex;

    /**
     * 状态 0:可用 1：停用 2：锁定
     */
    private Integer status;

    private String email;

    private String phone;

    private String addUid;

    private Long addTime;

    private String modifyUid;

    private Long modifyTime;


}